﻿<ResourceDictionary x:Class="NetwerkScanner.ResourceCodeBehind"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:NetwerkScanner"
                    xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
             >

    <Style x:Key="iconStyle" BasedOn="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" TargetType="Button">
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Width" Value="7"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="Bd">
                        <ContentPresenter/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="true">
                
                <Setter Property="FontWeight" Value="Bold"/>
            </Trigger>
        </Style.Triggers>
    </Style>
    <DataTemplate x:Key="CloseableTabDataTemplate">
        <StackPanel Orientation="Horizontal" Name="paneltest">
            <Label Content="{Binding}"></Label>
            <Button Style="{StaticResource iconStyle}" Click="TabClose_Click" Content="x" Name="closeBtn">
            </Button>
        </StackPanel>
        <DataTemplate.Triggers>
            <DataTrigger Binding="{Binding Path=IsSelected,RelativeSource={RelativeSource TemplatedParent}}" Value="False">
                <Setter TargetName="closeBtn" Property="Visibility" Value="Hidden"/>
            </DataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>
    
    <LinearGradientBrush x:Key="TreeViewItemBackground"  EndPoint="1,0.5" StartPoint="0,0.5">
        <GradientStop Color="#FFA6CAEC" Offset="0"/>
        <GradientStop Color="#FFAFD0EE" Offset="1"/>
        <GradientStop Color="#FFE4EFF8" Offset="0.5"/>
    </LinearGradientBrush>

</ResourceDictionary>